package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JudgeMapper;
import com.ruoyi.system.domain.Judge;
import com.ruoyi.system.service.IJudgeService;

/**
 * 题库管理Service业务层处理
 *

 * @date 2022-11-29
 */
@Service
public class JudgeServiceImpl implements IJudgeService
{
    @Autowired
    private JudgeMapper judgeMapper;

    /**
     * 查询题库管理
     *
     * @param id 题库管理主键
     * @return 题库管理
     */
    @Override
    public Judge selectJudgeById(Long id)
    {
        return judgeMapper.selectJudgeById(id);
    }

    /**
     * 查询题库管理列表
     *
     * @param judge 题库管理
     * @return 题库管理
     */
    @Override
    public List<Judge> selectJudgeList(Judge judge)
    {
        return judgeMapper.selectJudgeList(judge);
    }

    /**
     * 新增题库管理
     *
     * @param judge 题库管理
     * @return 结果
     */
    @Override
    public int insertJudge(Judge judge)
    {
        return judgeMapper.insertJudge(judge);
    }

    /**
     * 修改题库管理
     *
     * @param judge 题库管理
     * @return 结果
     */
    @Override
    public int updateJudge(Judge judge)
    {
        return judgeMapper.updateJudge(judge);
    }

    /**
     * 批量删除题库管理
     *
     * @param ids 需要删除的题库管理主键
     * @return 结果
     */
    @Override
    public int deleteJudgeByIds(Long[] ids)
    {
        return judgeMapper.deleteJudgeByIds(ids);
    }

    /**
     * 删除题库管理信息
     *
     * @param id 题库管理主键
     * @return 结果
     */
    @Override
    public int deleteJudgeById(Long id)
    {
        return judgeMapper.deleteJudgeById(id);
    }
}
